package com.kakarote.ids.provider.entity.BO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

@ApiModel("获取tokenBO")
public class GetTokenBO {
    @ApiModelProperty("clientId")
    @NotEmpty(message = "clientId 不能为空")
    private String clientId;

    @ApiModelProperty("clientSecret")
    @NotEmpty(message = "clientSecret 不能为空")
    private String clientSecret;

    @ApiModelProperty("重定向地址")
    @NotEmpty(message = "redirectUri 不能为空")
    private String redirectUri;

    @ApiModelProperty("grant_type")
    private String grantType;

    @ApiModelProperty("refreshToken")
    private String refreshToken;

    @ApiModelProperty("认证code")
    private String code;

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String toString() {
        return "GetTokenBO(clientId=" + getClientId() + ", clientSecret=" + getClientSecret() + ", redirectUri=" + getRedirectUri() + ", grantType=" + getGrantType() + ", refreshToken=" + getRefreshToken() + ", code=" + getCode() + ")";
    }

    public String getClientId() {
        return this.clientId;
    }

    public String getClientSecret() {
        return this.clientSecret;
    }

    public String getRedirectUri() {
        return this.redirectUri;
    }

    public String getGrantType() {
        return this.grantType;
    }

    public String getRefreshToken() {
        return this.refreshToken;
    }

    public String getCode() {
        return this.code;
    }
}
